﻿namespace LiteGrid.Mvc.ToBeRefactored
{
	/// <summary>
	/// Defines the properties that view models sent
	/// from liteGrid must expose in order to be used with <see cref="LiteGridUpdater{TModel,TTarget}"/>.
	/// </summary>
	public interface ILiteGridUpdateModel<TTarget>
	{
		/// <summary>
		/// True if the model was deleted. 
		/// </summary>
		bool? Deleted { get; }

		/// <summary>
		/// Maps the view model to the specified target.
		/// </summary>
		/// <param name="target"></param>
		void MapTo(TTarget target);
	}
}